package com.ruoyi.project.outpatient.service.impl;

import com.ruoyi.project.outpatient.domain.PatientCase;
import com.ruoyi.project.outpatient.domain.PatientLib;
import com.ruoyi.project.outpatient.mapper.PatientLibMapper;
import com.ruoyi.project.outpatient.service.PatientLibService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class PatientLibServiceImpl implements PatientLibService {
    @Autowired
    private PatientLibMapper patientLibMapper;

    @Override
    public List<PatientLib> selectPatientList(PatientLib patientLib) {
        return patientLibMapper.selectPatientList(patientLib);
    }

    @Override
    public PatientLib selectIdPatientInfo(Long patientId) {
        return patientLibMapper.selectIdPatientInfo(patientId);
    }

    @Override
    public PatientCase selectByIdPatientCaseInfo(Long patientId) {
        return patientLibMapper.selectByIdPatientCaseInfo( patientId );
    }
}
